﻿<%@ Page Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeBehind="Gallery.aspx.cs"
    Inherits="Photography.Gallery" %>

<%@ Register src="Controls/Galleria/GalleriaControl.ascx" tagname="GalleriaControl" tagprefix="uc1" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <% if (GalleryId != -1)
       { %>
    <asp:LinqDataSource ID="GalleryPhotosDataSource" runat="server" ContextTypeName="Photography.App_Data.PhotographyDataContext"
        OnSelecting="GetGalleryPhotos">
    </asp:LinqDataSource>
    <table width="100%">
        <tr>
            <td width="150">
            </td>
            <td align="right">
                <uc1:GalleriaControl ID="galleryControl" runat="server" DataSourceID="GalleryPhotosDataSource" SourceField="Location"
                    TitleField="Title" DescriptionField="Description" />
            </td>
        </tr>
    </table>
    <% } %>
</asp:Content>
